package com.acdc.business.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户用电记录对象 t_power_consumption_record
 * 
 * @author acdc
 * @date 2025-09-01
 */
public class PowerConsumptionRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 电能表ID */
    @Excel(name = "电能表ID")
    private Long meterId;

    /** 订单ID */
    private String orderId;

    /** 用电量(kWh) */
    @Excel(name = "用电量(kWh)")
    private Float energy;

    /** 费用(元) */
    @Excel(name = "费用(元)")
    private Float cost;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createdAt;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private Long status;

    /** 暂停时间 */
    private Date pendingTime;

    /** 继续时间 */
    private Date continueTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date finishedTime;

    /** 使用时长（小时） */
    @Excel(name = "使用时长", readConverterExp = "小=时")
    private Float useTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setMeterId(Long meterId) 
    {
        this.meterId = meterId;
    }

    public Long getMeterId() 
    {
        return meterId;
    }

    public void setOrderId(String orderId) 
    {
        this.orderId = orderId;
    }

    public String getOrderId() 
    {
        return orderId;
    }

    public void setEnergy(Float energy) 
    {
        this.energy = energy;
    }

    public Float getEnergy() 
    {
        return energy;
    }

    public void setCost(Float cost) 
    {
        this.cost = cost;
    }

    public Float getCost() 
    {
        return cost;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setPendingTime(Date pendingTime) 
    {
        this.pendingTime = pendingTime;
    }

    public Date getPendingTime() 
    {
        return pendingTime;
    }

    public void setContinueTime(Date continueTime) 
    {
        this.continueTime = continueTime;
    }

    public Date getContinueTime() 
    {
        return continueTime;
    }

    public void setFinishedTime(Date finishedTime) 
    {
        this.finishedTime = finishedTime;
    }

    public Date getFinishedTime() 
    {
        return finishedTime;
    }

    public void setUseTime(Float useTime) 
    {
        this.useTime = useTime;
    }

    public Float getUseTime() 
    {
        return useTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("meterId", getMeterId())
            .append("orderId", getOrderId())
            .append("energy", getEnergy())
            .append("cost", getCost())
            .append("createdAt", getCreatedAt())
            .append("status", getStatus())
            .append("pendingTime", getPendingTime())
            .append("continueTime", getContinueTime())
            .append("finishedTime", getFinishedTime())
            .append("useTime", getUseTime())
            .toString();
    }
}
